package com.cykj.pos.applet.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cykj.pos.applet.domain.Applet;
import com.cykj.pos.applet.domain.ao.AppletAO;
import com.cykj.pos.applet.domain.vo.TransactionsVO;
import com.cykj.pos.applet.mapper.provider.AppletMapperProvider;
import com.cykj.pos.domain.dto.VerifyCodeDTO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * @author wangjiaqi
 * @date 2022/1/24
 */
public interface AppletMapper extends BaseMapper<Applet> {

    @Select("SELECT phone FROM biz_merchant_entry WHERE phone = #{phone} GROUP BY phone ")
    String getPhone(String phone);

    @SelectProvider(type = AppletMapperProvider.class, method = "getList")
    List<TransactionsVO> getSnCodeList(@Param("m") AppletAO m);

}
